//
//  XCRefsModel.m
//  SoundOfNature
//
//  Created by 梁新昌 on 16/3/10.
//  Copyright © 2016年 梁新昌. All rights reserved.
//

#import "XCRefsModel.h"

@implementation XCRefsModel

- (void)dealloc {
    [_image release];
    [_title release];
    [_link release];
    [_songs release];
    [_mutableArray release];
    [_rankSongsModel release];
    [_ranklist_id release];
    [super dealloc];
}
- (instancetype)initWithDataSource:(NSDictionary *) dataSource
{
    self = [super initWithDataSource:dataSource];
    if (self) {
        self.mutableArray = [NSMutableArray arrayWithCapacity:0];
        for (NSDictionary *dic in self.songs) {
            XCRankSongsModel *rankSongsModel = [[XCRankSongsModel alloc] initWithDataSource:dic];
            [self.mutableArray addObject:rankSongsModel];
        }

    }
    return self;
}
@end
